package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BotFileDownMapper;
import com.ruoyi.system.domain.BotFileDown;
import com.ruoyi.system.service.IBotFileDownService;

/**
 * 资源下载Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-27
 */
@Service
public class BotFileDownServiceImpl implements IBotFileDownService 
{
    @Autowired
    private BotFileDownMapper botFileDownMapper;

    /**
     * 查询资源下载
     * 
     * @param id 资源下载主键
     * @return 资源下载
     */
    @Override
    public BotFileDown selectBotFileDownById(Long id)
    {
        return botFileDownMapper.selectBotFileDownById(id);
    }

    /**
     * 查询资源下载列表
     * 
     * @param botFileDown 资源下载
     * @return 资源下载
     */
    @Override
    public List<BotFileDown> selectBotFileDownList(BotFileDown botFileDown)
    {
        return botFileDownMapper.selectBotFileDownList(botFileDown);
    }

    /**
     * 新增资源下载
     * 
     * @param botFileDown 资源下载
     * @return 结果
     */
    @Override
    public int insertBotFileDown(BotFileDown botFileDown)
    {
        return botFileDownMapper.insertBotFileDown(botFileDown);
    }

    /**
     * 修改资源下载
     * 
     * @param botFileDown 资源下载
     * @return 结果
     */
    @Override
    public int updateBotFileDown(BotFileDown botFileDown)
    {
        return botFileDownMapper.updateBotFileDown(botFileDown);
    }

    /**
     * 批量删除资源下载
     * 
     * @param ids 需要删除的资源下载主键
     * @return 结果
     */
    @Override
    public int deleteBotFileDownByIds(Long[] ids)
    {
        return botFileDownMapper.deleteBotFileDownByIds(ids);
    }

    /**
     * 删除资源下载信息
     * 
     * @param id 资源下载主键
     * @return 结果
     */
    @Override
    public int deleteBotFileDownById(Long id)
    {
        return botFileDownMapper.deleteBotFileDownById(id);
    }
}
